<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
</html>

<script>
  function fn() {
    for (var i = 1, sum = arguments[0]; i < arguments.length; i++) {
      sum += arguments[i];
    }
    console.log(sum);
    for (var i = 1, del = arguments[0]; i < arguments.length; i++) {
      del -= arguments[i];
    }
    console.log(del);
    for (var i = 1, division = arguments[0]; i < arguments.length; i++) {
      division /= arguments[i];
    }
    console.log(division);
    for (var i = 1, mul = arguments[0]; i < arguments.length; i++) {
      mul *= arguments[i];
    }
    console.log(mul);
  }

  fn(2, 5, 5, 8, 6, 4, 8, 6, 9, 5, 6, 6);
</script>
